<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>

        //1.循环输出1-100之间的数字的和
        /* var sum=100;
        for(var i=1;i<=100;i++){
            console.log(i);
        }  */


        //2.循环输出1000以内的奇数
        /* var sum=1000;
         for(var i=0;i<=sum;i++){
             if(i % 2!=0){
                 console.log(i);
             }
         }   */

        //打印99乘法表
        var sum = 0;
        for (var i = 1; i <= 9; i++) {
            for (var j = 1; j <= 9; j++) {
                  sum=i*j;
                  document.write(i,"*",j,"=",sum," ");
            }
        }


    </script>
</body>

</html>